//
//  BaseNavViewController.swift
//  CHT
//
//  Created by aiquantong on 2019/2/19.
//  Copyright © 2019 difan. All rights reserved.
//

import UIKit

class BasicNavViewController: UINavigationController {

    class func customInterface() -> Void {
        let navigationBar:UINavigationBar = UINavigationBar.appearance();
        navigationBar.tintColor = AppConfig.Color.TABBlock;
        
        UITabBar.appearance().tintColor = AppConfig.Color.TABBlock;
        UITabBar.appearance().backgroundColor = UIColor.white;
        
        let normal = [NSAttributedString.Key.font : UIFont.boldSystemFont(ofSize: 12),
                      NSAttributedString.Key.foregroundColor : UIColor.black]
        UITabBarItem.appearance().setTitleTextAttributes(normal, for: UIControl.State.normal);
        
        let selected = [NSAttributedString.Key.font : UIFont.boldSystemFont(ofSize: 12),
                      NSAttributedString.Key.foregroundColor : AppConfig.Color.TABBlock]
        UITabBarItem.appearance().setTitleTextAttributes(selected, for: UIControl.State.selected);
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
